package com.giser.testapp.lib.Location;

/**
 * Created by Lss on 2017/11/29.
 */

public class GeographicLocation {
    public GeographicLocation() {
        super();
    }

    // 获取经度  x
    private double longitude;
    // 获取纬度  y
    private double latitude;
    // 高度信息  z
    private double altitude;
    // 速度 米/秒
    private float speed;
    // 方向角
    private float bearing;
    // 位置的准确性
    private float accuracy;
    //时间
    private String time;
    //前一次获取时间
    private String lastTime;
    // 位置提供者
    private String provider;
    //地址
    private String address;

    private int userID;
    private int powerValue;

    public double getLatitude() {
        return latitude;
    }
    public void setLatitude(double y) {
        this.latitude = y;
    }

    public double getLongitude() {
        return longitude;
    }
    public void setLongitude(double x) {
        this.longitude = x;
    }

    public double getAltitude() {
        return altitude;
    }
    public void setAltitude(double z) {
        this.altitude = z;
    }

    public float getSpeed() {
        return speed;
    }
    public void setSpeed(float speed) {
        this.speed = speed;
    }

    public float getBearing() {
        return bearing;
    }
    public void setBearing(float bearing) {
        this.bearing = bearing;
    }

    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public String getLastTime() {
        return lastTime;
    }
    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getProvider() {
        return provider;
    }
    public void setProvider(String provider) {
        this.provider = provider;
    }

    public float getAccuracy() {
        return accuracy;
    }
    public void setAccuracy(float accuracy) {
        this.accuracy = accuracy;
    }

    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public int getUserID() {
        return userID;
    }
    public void setUserID(int userID) {
        this.userID = userID;
    }

    public double getPowerValue() {
        return powerValue;
    }
    public void setPowerValue(int powerValue) {
        this.powerValue = powerValue;
    }
    @Override
    public String toString() {
        return "GeographicLocation [longitude=" + longitude + ", latitude=" + latitude + ", " +
                "altitude=" + altitude + ", speed=" + speed +
                ", " +"bearing=" + bearing + ", accuracy=" + accuracy +
                ", " +"time=" + time + ", lastTime=" + lastTime +
                ", " +"provider=" + provider + ", address=" + address +
                "]\n\n";
    }

}
